<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);
date_default_timezone_set('Asia/Chongqing');
require_once dirname(__FILE__) . '/sys_libs/Core.function.php';
require_once dirname(__FILE__) . '/sys_libs/Log.class.php';
require_once dirname(__FILE__) . '/sys_libs/h2p.function.php';
require_once dirname(__FILE__) . '/sys_libs/Misc.function.php';

require_once dirname(__FILE__) . '/http_fetch/httpapi.php';
require_once dirname(__FILE__) . '/curl_proxy/curlapi.php';
require_once dirname(__FILE__) . '/email_libs/emailapi.php';
require_once dirname(__FILE__) . '/domain_tools/domainapi.php';
require_once dirname(__FILE__) . '/trans_libs/transapi.php';
require_once dirname(__FILE__) . '/db_proxy/dbapi.php';



function phplib_init($file) {
    log::n('phplib.php init success,loaded by ' . $file);
}

if (!defined('APP_ROOT_DIR')) {
    log::w('const APP_ROOT_DIR not defined!');
    exit();
}

#$res = f_post('http://www.baidu.com');
#var_dump($res);
#echo getLocalIp();
?>